Basically, you sell it first, and buy it later.
But in order to have something to sell, you to have to “borrow” an actual real share from someone who does own it. Because it has to be a real share that you sell.
They lend you the stock today, to sell, and you promise to “buy” it from them later...