A U.S. citizen may lose his or her dual citizenship by obtaining naturalization in a foreign state, by taking an oath or making an affirmation or other formal declaration of allegiance to a foreign state or political subdivision thereof, by serving in the armed forces of a foreign state, or by performing certain other acts, but only if the act was performed "voluntarily and with the intention to relinquish U.S. nationality".[30]