Schedule D is used to report the capital gains and losses from the sale or exchange of capital assets, including stocks, bonds, real estate, and other property. It is divided into several parts, each dealing with specific types of transactions, such as sales of stock at a profit or loss, sales of real property, and sales of collectibles.