What factors influence the decision between deploying enterprise applications on the cloud vs. on-premises?

When deciding between deploying an enterprise application in the cloud or on-premises, what factors weigh the most? Is it cost, control, security, or scalability? I know cloud platforms like AWS and Azure offer a lot of flexibility, but I’m curious about situations where on-premises is still the preferred choice. What’s been your experience in making this decision?