How does acquisition affect stock price

How can an acquisition affect the stock price of the companies involved?