F
It is usually a forcible act and is generally held as an illegal transition of territory.
However, in countries like Russia, they annexed Crimea and formally incorporated it within their own. They also view it as a legal act. The act of annexing deemed as legal depends on the point of view of each country.