Compulsory voting
Countries that have compulsory voting by law but do not enforce it:Although voting in a country may be compulsory, penalties for failing to vote are not always strictly enforced. In Australia and Brazil, providing a legitimate reason for not voting (such as illness) is accepted. In Argentina, those who were ill on voting day are excused by requesting a doctor to prove their condition; those over away from their voting place are also excused by asking for a certificate at a police station near where they are. Belgian voters can vote in an embassy if they are abroad or can empower another voter to cast the vote in their name; the voter must give a "permission to vote" and carry a copy of the eID card and their own on the actual elections.
Right of foreigners to vote
(EU member) Municipal voting rights are granted to citizens of countries which reciprocate by granting voting rights to Spanish citizens when reciprocity is enshrined in a bilateral treaty ratified by Spain, i.e. since 1997 the EU member states and Norway, but already since 1989-1990 Denmark, the Netherlands, Sweden and Norway. Bilateral treaties with Argentina (1988), Chile (1990) and Uruguay (1992) have never been enacted as voting rights are not enshrined in a specific law in Chile, and for the two other countries the instruments of ratification have never been exchanged, there are also similar "friendship treaties" with Colombia and Venezuela. There is an ongoing debate in Spain about either ratifying existing bilateral treaties or changing the constitution in order to grant all residents voting rights without reciprocity, but some Catalan parties are opposed to it.