A casino is an establishment for gambling. It can be a standalone facility or part of a larger resort, hotel, restaurant or other tourist attraction. In some countries, casinos are legally licensed and regulated, while in others they are unlicensed and operate illegally. In both cases, the casinos offer an experience that is characterized by excitement and risk. Many people gamble to win money, but some do it simply for the thrill of the game.

Gambling has been a part of human civilization for millennia. Archaeological evidence of dice games dates back to 2300 BC, and card games began to appear in Europe around 500 AD. In modern times, the casinos have become popular as tourist attractions and are often combined with other facilities such as hotels, restaurants, shopping centers and nightclubs.

Casinos make money by taking a small percentage of the total bets made at their tables, called the house edge. This may be no more than two percent of all bets, but it adds up over the millions of bets placed each year by patrons. These profits allow casinos to build elaborate hotels, fountains and replicas of pyramids, towers or famous landmarks.

Security is also a major consideration for casinos. Each table is watched by a pit boss or manager who can spot cheating, stealing and other suspicious activities. In addition, casinos typically use a high-tech eye-in-the-sky system that allows security personnel to watch every table, change window and doorway in the entire building at once. Casinos also provide complimentary items to “good” players, such as free hotel rooms, meals and show tickets.