Picture an online store where two customers grab the last item at the same moment. Or a bank transfer that crashes halfway through—money leaves one account but never arrives in the other. Databases face these dangers every day. This chapter shows you how transactions keep data safe, consistent, and trustworthy, even when everything seems to be happening at once.