17th century
The first ever reference to a game similar to blackjack came in a Spanish tale called Rinconete y Cortadillo, in the 17th century. There are some who think that the game dates back even further, though, possibly even back to the time of the ancient Egyptians.