Abstract
Nilpotent Lie algebras with maximal subalgebras are considered. A bound on the dimension of these algebras as a function of their coclass is obtained. These algebras are then classified up to coclass two. The result is field dependent and several fields are considered.