What is capital gains tax?

Capital gains tax (CGT) can seem like a complex subject, but understanding it is vital at tax time.