Song writing is the process of creating a short piece of music usually involving lyrics (called a song).
Methods used in song writing range from experimentation ("that sound good, keep that") to mathematical composition of patterns (see Johann Sebastian Bach or Wolfgang Amadeus Mozart).