A cantata is a vocal composition with instrumental accompaniment, typically consisting of multiple movements and often based on a religious or poetic text. Originating in the Baroque period, cantatas were used in both secular and sacred contexts, with notable contributions from composers like Johann Sebastian Bach.