Borrow a stock worth $100, sell it, collect $100 cash.
Buy stock back at a later date for $50 (You thought the price was going to go down right?), give it back to the original lender.
You have now made $50.
This is my (basic/primitive) understanding of shorting