Molarity is the number of moles of the solute present in 1 litre of the solution. Therefore, molarity depends on the volume of the solution.
Volume of the solution varies with the change in temperature. Hence, molarity of a solution depends upon temperature.