"musical composition that sounds extemporaneous," 1724, from Italian fantasia, from Latin phantasia (see fantasy).