Launched in September of 1941, the ship engaged in her first battle in 1942 participating in Operation Tourch while in a gun battle with the French battleship Jean Bart. Five hits of her massive 16 inch guns and the Jean Bart was silenced. The Massachusetts also saw action in the Pacific durring the war and participated in the shelling of Iwo Jima and Okinawa.
I spent a couple of nights on the ship with my son's Cub Scout troop a few years back. IIRC, the deal was that the French in control of the ship in Casablanca were not exactly friendly toward the Allies, and opposed the invasion. See the whole story at: