Beauregard and Johnston hoped to liberate Middle and West Tennessee from Union control by attacking Major General Ulysses S. Grant's Army of the Tennessee at a riverboat port at Pittsburg Landing on the Tennessee River near Shiloh Church. By attacking Grant before Buell's Army of the Ohio arrived, Beauregard hoped to defeat the two armies separately.