If you wish to be exempt from German capital gains tax, you can obtain an exemption certificate under certain conditions.