By the time of 4 ABY, shortly before the Battle of Endor, major shipyards throughout the galaxy included but were not limited to: 30 civilian shipyards, 31 shipyards reserved for the Imperial military, and only 6 shipyards not affiliated with the Imperials at all. Of these, 27 of all 67 shipyards worked on the Imperial-class ships only, 22 worked on cruisers only, and 18 worked on both.[1]