(photo: CGP Grey)
Embassies are essentially the office of a country/government that resides in a foreign country.
For example, the US Embassy in Germany is an extention of the US Govt in Germany. Likewise, the German Embassy in the US is an extension of the German govt.
The highest ranking official in an Embassy is an Ambassador.