A military attaché or defence attaché (DA), sometimes known as a "military diplomat", is an official responsible for military matters within a diplomatic mission, typically an embassy. They are usually high-ranking members of the armed forces who retain their commission while being accorded full diplomatic status and immunity.
Generally, a military attaché serves as a representative of their country's defense establishment, with responsibility over all aspects of bilateral military and defense relations. Their main roles include advising diplomatic officials on security matters and gathering intelligence on the host country's armed forces; they may also be tasked with other security issues, such as migration or law enforcement matters. The duties, qualifications, and management of a military attaché varies between governments.