Under the International Regulations for Preventing Collisions at Sea (COLREGs), Rule 23, a power-driven vessel (steamship) underway at night must display:
Vessels over 50 meters must display a second masthead light abaft of and higher than the forward one.
These lights ensure other vessels can determine the ship's direction, size, and status.