An ensign is a flag that shows the nationality of the vessel and must be worn at the stern or as close to it as possible. A burgee is a flag that shows the membership of a yacht club or sailing association and can be worn at the masthead or the port spreader.