In this research, the dynamics and control of a rigid spacecraft with flexible structures were studied for the case of optimal simultanuous multi-axis reorientation. A model spacecraft consisting of a rigid hub in the middle and two solid bodies symmetrically connected to either side of the hub through uniformly distributed flexible beams is considered for the dynamic analysis and control simulation. To optimally reorienting the spacecraft, an optimal nominal control trajectory is found first through an iterative procedure. Linear flexural deformations are assumed for the beam structures and the assumed modes method is applied to find the vibration control law of the beams. The system overall optimal attitude control is achieved by following the open loop optimal reference control trajectory with an stabilizing guidance law.