The US Constitution says that only Congress can declare war for an extended time but there is a workaround. Congress approved the 2001 Authorization for Use of Military Force (AUMF), giving the president the authority to track down and destroy al-Qaeda and the Taliban.
Source