The first temple to be built in Jerusalem was built by King Solomon. King David, Solomon's father, had originally wanted to build it and made plans for it, but God told David that He wanted Solomon to build it. This was because King David had sinned with Bathsheba.