Why did my stool turn tarry after taking aspirin?

Aspirin is an anti-platelet agent that inhibits platelet aggregation, which can increase the risk of bleeding and can also irritate the mucous membrane of the digestive tract, triggering gastrointestinal bleeding and eventually causing the development of tarry stools.