What is price to earnings ratio in a stock market

Why is the price-to-earnings ratio important for stock evaluation?