Although some means of controlling foreign visitors to the United Kingdom existed before 1905, modern immigration border controls as now understood originated then. Although an Alien Act was passed in 1793 and remained in force to some extent or other until 1836, there were no controls between then and 1905 barring a very loosely policed system of registration on entry. The development of in-country enforcement controls is dealt with separately—see UK immigration enforcement.