Psalm 24 was written by David describing the time when he brought the ark of the Lord into Jerusalem. Although David was one of the most famous kings in the world at the time, he knew that he needed the presence of a greater King, God himself in the centre of his life.