France expanded its empire in North Africa during the late 19th century, establishing control over Algeria, Tunisia, and Morocco. France began occupying Algeria in 1830 after 40 years of rebellion. Tunisia became a French protectorate in 1881. Morocco was made a French protectorate in 1912. The British also established influence in North Africa, occupying Egypt from 1882 to 1922 when it became a protectorate.