A stock buyback, also known as a share repurchase, is when a company buys a portion of its previously issued stock, reducing the total number of outstanding shares on the market.