Magnetic fields are believed to play a crucial role in the star formation process. Observations of polarized dust emission from active star forming regions can be used to map the magnetic field. The Submillimeter Array (SMA) was used to obtain maps of the magnetic field in a number of Class 0 and Class I young stellar objects. I will be presenting and discussing some of these results. These observations by the SMA have been successful at providing new  evidence that show that the effects of magnetic field are important in these objects. I will also provide an introduction to the Submillimeter Array and show examples of some of the exciting results that have been achieved from recent observations.