US citizens employed directly by a foreign government for work performed abroad are in an unusual tax position: the income is generally foreign earned income eligible for the Foreign Earned Income Exclusion if you meet the residency or presence tests, just like income from a private foreign employer. The host country may not withhold income tax on salary it pays to a US citizen, depending on whether a bilateral agreement or diplomatic convention applies, which means you may need to pay estimated taxes to the IRS rather than relying on withholding. Social security treatment depends on whether the US has a totalization agreement with the host country: if the foreign government covers you under its social security system, you may be exempt from US self-employment tax on those earnings. Any local pension or retirement benefit provided by the foreign government is a foreign pension plan for US purposes, and it must be reported on Form 8938 and potentially FBAR depending on the value. These arrangements vary significantly by country, so it is worth getting specific advice before you start rather than trying to reconstruct the tax treatment at year end.