A visa is a conditional authorization granted by a polity to a foreigner that allows them to enter, remain within, or leave its territory.