How does acquisition affect stock price

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

An acquisition can cause the target company’s stock price to rise, reflecting the buyout offer, while the acquiring company’s stock may fall if investors think the deal is too costly. The final impact depends on the perceived benefits and risks of the acquisition.