The present invention relates to a thermogelling pharmaceutical composition comprising local anaesthetics in base form and which is suitable for topical administration. The compositions further comprise a polyoxyethylene castor oil and one or more surfactants to obtain thermogelling characteristics.