Diaganol relationship is shown by elements of one period with elements of another element in the next period which are diagonal to itself.
Li, Be,B belongs to same period and Mg belong to same group of Be. So its shown by Be and Al.
Be belongs to II period and Al belongs to III period.