Bananas are an excellent source of a compound called tyrosine, which is a building block of dopamine. Tyrosine helps your body produce more dopamine, which can improve your mood and motivation. Bananas also contain vitamin B6, which helps convert tyrosine into dopamine.