In practice, the sale of shares in a legal entity often gives rise to a number of tax-related questions, for example, when the entity owns real estate in Switzerland and the shareholder of the company sold is resident abroad. The following article focuses on selected aspects of this topic.