They establish diplomatic relations between two countries at the highest rank. An ambassador plenipotentiary has full authority to represent their home country and can sign treaties and conventions. An ambassador extraordinary is an individual who is the highest-ranked diplomatic minister going on a special mission.
The primary duties of ambassadors are to maintain diplomatic relations with the receiving state and promote foreign policy strategies through international organizations.