The caps of some were subsequently found close up to the famous stone-wall, and an officer and seven privates of company D were taken prisoners. Frick and his 129th Pennsylvanians then distinguished themselves in combat during the Battle of Chancellorsville (May 1–3, 1863), a fight in which the 129th Pennsylvania engaged again in intense hand-to-hand combat with the enemy. Afterwards, Tyler praised Frick's men, noting that "no man ever saw cooler work on field drill than was done by this regiment", and adding, "Their firing was grand, by rank, by company, and by wing, in perfect order." Five members of the regiment were dead, 32 were wounded, and five were missing. Frick and his men were then honorably mustered out on May 18, 1863, and returned home to Pennsylvania. As with Fredericksburg, Frick's conduct at Chancellorsville was later cited as a reason that he was a worthy candidate for the U.S. Medal of Honor. At Chancellorsville, he had personally engaged in hand-to-hand combat in order to retake the colors of his regiment after they had fallen into enemy hands. After mustering out from the 96th Pennsylvania on May 18, 1863, Frick then re-enlisted with a third Pennsylvania unit. Re-enrolling at Camp Curtin in Harrisburg just over a month later on June 22, he was commissioned that same day as the colonel of the 27th Pennsylvania Militia (Emergency of 1863), one of multiple short-term units which were quickly raised during that summer to turn back Confederate General Robert E. Lee's army as it advanced into Pennsylvania. As the commanding officer of this regiment, Frick led the 27th Pennsylvania Emergency Militia during the Gettysburg Campaign. Among his regiment's successes, his men burned the Columbia-Wrightsville Bridge to prevent its capture by the Confederate infantry led by Brig. Gen. John B. Gordon. Frick then mustered out with his regiment on July 31 when state leaders determined that the emergency had ended. The fourth year of the war proved to be another challenging one for Frick with the majority of those challenges occurring on the home front. On February 16, 1864, his wife died in childbirth. Their son, John C. Frick, who was born that day, then survived just five months before he died at the family's Pottsville home on August 12. Another of the Fricks' children, James Cameron, then died four days after Christmas that same year.