Etymology
Today it means: A harbor official responsible for overseeing the taking on and discharging of ballast by ships. Full definition →
From ballast + master.
Etymology from Wiktionary, CC BY-SA 4.0.