A rectangular layer packing algorithm based on two-dimensional strip packing was designed.The algorithm is hybridized with simulated annealing algorithm to solve rectangular layer packing problem.The strip is divided into layers whose numbers depend on the components to be packed.Example shows that the presented rectangular packing algorithm is effective and reasonable.