When the main residence is demolished, the main residence exemption is also lost. This is because the main residence exemption only applies to a CGT Event which happens to a CGT asset. When the dwelling is demolished (C1 Event), this exemption does not apply if the event does not also happen in relation to the land (CGT Event A1).