What war originally sparked the need for the U.S. Memorial Day Observance?

What war originally sparked the need for the U.S. Memorial Day Observance?