One of the main obstacle to study compactness in topological spaces via ideals was the definition of ideal convergence of subsequences as in the existing literature according to which subsequence of an ideal convergent sequence may fail to be ideal convergent with respect to same ideal. This obstacle has been get removed in this article and notions of I compactness as well as I star compactness of topological spaces have been introduced and studied to some extent. Involvement of I nonthin subsequences in the definition of I and I star compactness make them different from compactness even in metric spaces.