The nationally televised draw was held at Madrid's Teatro Real opera house where children sang out the winning numbers during the three hour event.
The complex rules allow players to buy multiple tickets with the same numbers, which makes it almost impossible to find out how many people have won.
A full ticket costs $335 (200 euros) but can be split evenly between 10 people for $33.50 (20 euros).
Because of this families or work colleagues often pool together to buy a share of a ticket.
So if ten people buy a shared ticket which wins the top prize each will receive $671,000 (400,000 euros).
A single lottery office in the resort town of Salou in the northeast Catalan region, shared out $536 million (320 million euros) Spanish television station TVE reported.
Such are the riches that can be won, Spaniards spent more than $4.86 billion (2.9 billion euros) on lottery tickets in the hope of getting lucky, which was three per cent more than the previous year organisers said.
Spain established its national lottery as a charity in 1763 during the reign of King Carlos III. Its objective later became to shore up state coffers. It also helps several charities.
The winning tickets were sold in the northeastern provinces of Tarragona and Barcelona, in central Madrid and Salamanca, and in southern Alicante, Murcia and Seville.
Winners of the top prize will pay $127,500 (76,000 euros) in taxes. Prizes up to $33,500 (20,000 euros) are exempt from taxes.