Citizenship involves membership in a political society that implies duties of allegiance and protection. There are various ways to acquire citizenship, such as by birth in a country (jus soli) or descent from citizen parents (jus sanguinis). Citizenship can also be acquired through naturalization which makes a foreigner a citizen. Citizens have rights like suffrage but also duties like obeying laws and defending the state. Losing citizenship can occur voluntarily like gaining a foreign citizenship or involuntarily like being declared a deserter.