Chemistry of Li is similar to that of Mg because
The ratio of their charge to size is nearly the same
both have the same size
both are found together in nature
both have similar electronic configuration
i think diagonal relatn is responsible