British pharmacist John Walker invented the matchstick by accident.

Walker was experimenting with flammable pastes to use in guns. He created the match when the wooden tool he used to mix the substances in his paste scraped and caught fire. Walker never patented the matchstick.

Source