A hydrogen bonded molecular assembly of 2-ureido-4(1H)-pyrimidinone was constructed by utilizing an anthracene photodimerization reaction.