 During the American Revolutionary War, Pennsylvania produced various militia units in support of the Patriot cause.In the American Civil War, Pennsylvania supplied multiple units in support of the Union cause.In the Spanish–American War, eighteen regiments, as well as several cavalry, artillery, and engineering units, and the Pennsylvania Naval Militia were raised in Pennsylvania to fight in the war.