International Code of Signals Flags are used at sea for communication between ships. They can spell out short messages and individual flags and various combinations of flags also have special meanings. On ceremonial and festive occasions the signal flags are used to 'dress' (decorate) boats and ships.
Source and Link:
Wikipedia