Kobarid (Italian Caporetto, German: Karfreit) is a town and a municipality in the upper Soča valley, western Slovenia, near the Italian border. Kobarid is known for the famous Battle of Kobarid, where the Italian retreat was documented by Ernest Hemingway in his novel A Farewell to Arms. The battle is well documented in the museum in the centre of Kobarid. The museum won a Council of Europe award in 1993. The adjacent Tonocov Grad archaeological site has remains of 5th century Roman buildings.