The principal deck of a ship. So in other compounds, MAINMAST, MAINSAIL, MAINSPRING, MAINSTAY, MAINTOP, MAINYARD.