Mr.Frank gave Anne the diary after they moved into the Secret Annex to write down her thoughts and whatever was on her mind.
Peter and Anne have a delicate relationship at the beginning,( and they often argued!), but later, they become more affectionate towards each other.