In simplest terms, buying and selling a stock the same day is called day trading. The goal is buy or sell a fast moving stock at a certain price and then sell or buy within a few minutes or hours in the same day. Day traders focus on both long and short trades. Traders repeat this process several times in a day on the same stock or different stocks. At the end of the day they close all their positions and start over again the next day.
More information on day trading click here.