Rivalry between French and Italian interests in Tunisia culminated in a French invasion in 1881 and the creation of a protectorate .