Believing only in the five books of Moses, the Sadducees didn't believe in miracles, angels, or resurrection because they saw none of those elements in the Pentateuch. They were smaller in number than the Pharisees or Herodians, but, being the wealthier businessmen, they were the elite of the day.
According to Deuteronomy 25, if a man died childless, it was the obligation of his next younger brother to marry his widow and bear a child to be his heir, to carry on his name. In order to examine Jesus' theology, the Sadducees pose this question concerning a hypothetical woman who had been widowed seven times over.