A denial-of-service attack, also known as a DoS attack, aims to disrupt a computer system or network by flooding it with an overwhelming amount of traffic, rendering the service unavailable to legitimate users.