If you spend more than 183 days in Malta during a calendar year, you are considered tax resident in Malta for that year. Tax residence can also arise in other circumstances, including when you come to Malta to establish your residence.
MTCA — Tax Residence: https://mtca.gov.mt/personal-tax/individual/tax-residence