The Portuguese were the first to arrive in1511,at the time when Albuquerque was attempting to conquer Melaca(Malacca).They concluded their first treaty with Ayutthaya in1516,receiving permission to settle in Ayutthaya and other Thai ports in return for supplying guns and ammunition to the Thai king.