Due to the absence of a comprehensive knowledge system for modeling ocean circulation, there is ambiguity and diversity in the semantic expression of ocean circulation. This makes it difficult to organize and share relevant spatiotemporal data effectively. This paper addresses the issue of ocean circulation by introducing ontological theory and methodology based on a comprehensive analysis of domain knowledge. Through a comprehensive analysis of the conceptual and relational characteristics of different elements, we define classes, properties, spatiotemporal relationships, and inference conditions with which to formally express concepts and relationships in ocean circulation, and finally complete the construction of ocean circulation ontology. The formal expression of the Equatorial Counter Current is presented as an example with which to validate the effectiveness of ontological construction. Additionally, an ontology-based knowledge base of ocean circulation is proposed. The construction framework is described, and several examples of knowledge base queries are also illustrated. The results demonstrate that this ontology can effectively represent the relevant knowledge within ocean circulation and provide a meaningful reference for investigating knowledge sharing and semantic integration within this field.