The first contact between Sri Lanka and the Portuguese was established by Dom Lourenço de Almeida in 1505–6. It was largely accidental and it wasn't until 12 years later that the Portuguese sought to establish a fortified trading settlement.