The present invention relates to a compound or a pharmacologically acceptable salt thereof having excellent tissue non-specific alkaline phosphatase inhibitory activity. The present invention provides a compound represented by the formula (I) or a pharmacologically acceptable salt thereof.