Whether you are eligible to divorce in the UK depends upon two things:
Where you are domiciled; and
Where you are habitually resident.
Domicile is a legal point that takes into account not only where you were born but also where you are living now and what your intentions are for the future. Habitual residence, on the other hand, refers to where you live and are based for the majority of the time.